<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/xbbcrm/tpxbb/Public/css/styles.css" />
 </head>
 
<body>
<table border="1" cellspacing="0" cellpadding="0"  class="altrowstable" id="alternatecolor">
<tr >
 <th><a href="<?php echo U('order/index');?>">首页</a></th>
  <th><a href="<?php echo U('shop/index');?>">平台店面</a></th>
  <th><a href="<?php echo U('wm/dingdan');?>">订单列表</a></th>
 <th><a href="<?php echo U('wm/yzdeal');?>">有赞订单</a></th>
 <th><a href="<?php echo U('wm/mtdeal');?>">美团订单</a></th>
 <th><a href="<?php echo U('order/list');?>">最新数据</a></th>
 <th><a href="<?php echo U('order/getdata');?>"> 更新闪送数据</a></th>
 <th><a href="<?php echo U('order/dealdata');?>"> 处理闪送数据</a></th>
 <th> 地图配置</th> 
  <th><a href="<?php echo U('wm/baidu');?>">上传百度数据</a></th>
 <th><a href="<?php echo U('login/logout');?>">退出</a></th>
</tr>
</table>

<!--  id,ddid,name,sex,mobile,address,menu,ordertime,price,userpay,platpay,bosspay,income,status,invoice,shipping,memo -->
<p><?php echo ($page); ?></p>
<table border="1" cellspacing="0" cellpadding="0"  class="altrowstable" id="alternatecolor">
<tr >
 <td>序号 </td><td>订单号</td><td width="20">姓名</td><td>手机号</td><td width="150">地址</td><td width="300">菜单(菜品 单价 数量 金额)</td>
 <td>下单时间</td><td>价格</td><td>用户支付</td><td>平台补贴</td><td>商家补贴</td><td>运费</td><td>实际收入</td><td>状态</td><td width="150">发票</td><td width="150">备注</td> 
</tr>
<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$arr): $mod = ($i % 2 );++$i;?><tr >
 <td><?php echo ($i); ?> </td>
 <td><?php echo ($arr["ddid"]); ?></td>
 <td><?php echo ($arr["name"]); ?>  <?php if($arr[sex] == 1): ?>先生<?php else: ?>女士<?php endif; ?></td>
 <td><a href="<?php echo U('order/mobile/',array('mobile'=>$arr[mobile]));?>"><?php echo ($arr["mobile"]); ?></a></td>
  <td><a href="<?php echo U('order/dis/',array('dis'=>$arr[address]));?>"> <?php echo ($arr["address"]); ?></a></td> 
  <td> <?php echo ($arr["menu"]); ?></td> 
  <td> <?php echo ($arr["ordertime"]); ?></td>
  <td> <?php echo ($arr["price"]); ?></td>
  <td> <?php echo ($arr["userpay"]); ?></td>  
  <td> <?php echo ($arr["platpay"]); ?></td>
  <td> <?php echo ($arr["bosspay"]); ?></td>
  <td> <?php echo ($arr["shipping"]); ?></td>
  <td> <?php echo ($arr["income"]); ?></td>
  <td>  <?php if($arr[status] == 1): ?>已完成<?php else: ?>未完成<?php endif; ?></td>
  <td> <?php echo ($arr["invoice"]); ?></td>
  <td> <?php echo ($arr["memo"]); ?></td>
</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
</body>
</html>